package cn.cdeden.aiqa.domain.vo;

import lombok.Data;

import java.util.List;

@Data
public class DifyRetrieveVo {
    private Query query;
    private List<Record> records;

    @Data
    public static class Query {
        private String content;
    }

    @Data
    public static class Record {
        private Segment segment;
        private double score;
        private Object tsnePosition;
    }

    @Data
    public static class Segment {
        private String id;
        private int position;
        private String documentId;
        private String content;
        private Object answer;
        private int wordCount;
        private int tokens;
        private List<String> keywords;
        private String indexNodeId;
        private String indexNodeHash;
        private int hitCount;
        private boolean enabled;
        private Object disabledAt;
        private Object disabledBy;
        private String status;
        private String createdBy;
        private long createdAt;
        private long indexingAt;
        private long completedAt;
        private Object error;
        private Object stoppedAt;
        private Document document;

        @Data
        public static class Document {
            private String id;
            private String dataSourceType;
            private String name;
            private String docType;
        }
    }

}
